'use client';
import {
  useSession,
  SessionProvider as NextAuthProvider,
} from 'next-auth/react';

export function UserInfo() {
  const session = useSession();

  return <div>{session.data?.user?.name}</div>;
}

export function SessionProvider({
  children,
  ...props
}: React.PropsWithChildren) {
  return <NextAuthProvider {...props}>{children}</NextAuthProvider>;
}
